classdef Curve
    properties
        parameter;
        domain;
        value;
        b;
    end
    methods
        function A = Curve(y)
            pro = {'输入参数的值（向量）','输入定义域（向量）','输入函数公式（参数为a，自变量为x）'};
            answer = inputdlg(pro,'初始化曲线',[1,20]);
            syms a x;
            %转换输入值的格式
            answer{1} = eval(answer{1});
            answer{2} = eval(answer{2});
            answer{3} = eval(answer{3});
            %给类的成员赋值
            A.parameter = answer{1};
            A.domain = answer{2};
            A.value = answer{3};
            A.b= y;
        end
    end
end